#compilers

#GLOBAL_PARAMETERS
# VALUE_TYPE = float
# NUM_RUN = 100000

#ENVIRONMENT_PARAMETERS

#CUDA_PARAMETERS
#NVCC_FLAGS = -O3  -w -m64 -arch=sm_30
NVCC_FLAGS = -arch=sm_60 -Xptxas -O3 -Xcompiler -O3 -std=c++11
# CUDA_INSTALL_PATH = /usr/local/cuda-11.0
# CUDA_INCLUDES = -I$(CUDA_INSTALL_PATH)/include -I/home/duzhen/Benchmark_SpMV_using_CSR5-master/CSR5_cuda/inc
# CUDA_LIBS = -L$(CUDA_INSTALL_PATH)/lib64 -lcudart

cuda:
	/usr/local/cuda-11.0/bin/nvcc $(NVCC_FLAGS) main.cu -o spmv

# /usr/local/cuda-11.0/bin/nvcc $(NVCC_FLAGS) main.cu -o spmv $(CUDA_INCLUDES) $(CUDA_LIBS) -D VALUE_TYPE=$(VALUE_TYPE) -D NUM_RUN=$(NUM_RUN)

PHONY: clean
clean:
	rm -f *.o spmv ${src}